Fixed memory issue.