Fixed garbage collection issue.