Fix wrong assertion

Closes #174 
Ok, thanks!