fixed hash_resize()