fixed equality test error