Fix a format string to use the correct type