Fixed logical error in equality operator.