fix earth curvature correction