Fixed a reversed assert
Merge pull request #523 from ussuri/fix-bad-assert

Fixed a reversed assert