fix reinit on switch tab