prevent crash on 0-size spline