Fixed a syntax error in the comparison logic.