Fixed crash when deleting a floorplan