distortion correction now gets the right solution