fixed hash_table bugs on resizing when inserting