fix wrong hide content when navigating