Output file option bug fix