correcting invalid comparison
adding equality correction