Fix a memory issue.