fix problem with hashmap initilization