fixing object leak