fixed get_location