fix get_locations