Fix incorrectly indexed string formatting.