Fix the incorrect index corresponding problem