fix hashmap realease bug