Fixed crash when placing a machine near a machine.