Fixed insane memory exhausting issue.