fix bug inversion lat lon