fix bugs in cc_hashmap_copy_entry function