Fixed bug of checkRep() in Note