Fix wrong index on string formatting.