fix a index bug for pulse spline interpolation.