Fix improper comparison operator usage