Fix incorrect equality operator use