Fixed args.output bug