Fixed a wrong index.