Handle the problem that clicking on tab bar item will navigate to root problem.