hash_map bug fix