Fix format string index error.
Merge pull request #6640 from s0undt3ch/develop

Fix format string index error.