fixed issue with != operator