fix leak object issue

fix leak object issue