[x] Fixed a rare index error