fix the bug(out of memory)