Fixed an issue with a wrong index for an array.