Bug fix in as.splineMatrix