Update of as.splineMatrix to better detech year