fix strange comparison