fixing assertion
Merge pull request #234 from KurtStam/master

fixing assertion