fix equality check