Fix building rotation.