Fix hashmap minor bug