Fixed the error thrown by the HashMapSet