I need help with a bug

So when i'm building in besiege sometimes the game freezes for a bit and then the brace i just placed change where it went and then the machine duplicated and when i start the machines duplicate parts would explode out and when i stop then the pieces would stay in the ground and not be removable. so whenever i'm building and this happens all my progress would go in the trash