_initSpline giving inconsistent results