fixing segfault caused by missing hashmap init