fix hashmap not being reset on each new map