fix wrong index bug

the index will recalculate when enter the deeper folder, fixed it.