Fix for object leak.