fix a typo in comparison code