fix bug about the hashmap