bugfix get_buildings