fix latlong handler based on tests