just fix index bug