Fixes the comparison operator

Issue #1