Fix wrong equality test.