fixed cleanup for OutputFormat3