fix tab destroy