fixing long lat bug