fixed an issue where != is not the same thing as is not.