Fixed json loop in apt_get_locations