Fix lon dist calculation