Fixed old bug, now memory overflow bug exists.