fix process out of memory.