fix index issue

fix index issue