Fixed a memory issue.