Bug fix to as.splineMatrix