fix the hash code issue