Fix some incorrect comparison