fixed racy hashmap