fix a crash and remove the buildings.