equality check fix