Fix problem when LATLON is disabled