fix bug in hashmap.c