Fixing OutputFormat problem