fix the bug that can not deal long file