fix popup destroy