Fix extrapolation to use the correct points.