fixed output file not specified bug