Fixed the out of memory bug.