Potential fix for memory leak issue.