fix hashmap bug