fix tab error where contentContainer is gone before onRemove is called