fixed the bug in which the comparison operator is wrong.