fixed the lat and lon retrieval