fixed hashmap bug