I did something similar before by placing a folk on an item, such as a stone, then placing other folk on top by right-clicking on the stone.
A solution to fix this bug would be to prevent players/bots from placing folk on top of other objects (not including stone paths).