Fixed bug with local index not showing after switching tabs