fix wrong index.