Fix indices index error.