bug fix in trmm check