fixed reading spline file