Fixes invalid assert

See #155.