fixed issue
Merge pull request #16 from erichuppert/master

Added assertion in checkRep