Fix PrintFormatToString bug