fixed bug with equality in hashsets.