fix type of location_id