fixed Contains to return false in correct place