Bug fix in checksplineMatrix