修正destroy managed的bug