fix a bug that hash resize depends on not used size but max size