fix resume active tab