fix bug for destruct