Fix a bug that gives wrong velocity near the poles.