bug fix in checksplineMatrix