fix get_buildings