Fix tabs restoration