Fixed issue about implementing checkRep