Bug fix of checksplineMatrix