Fixed notEquals method