Fix output file's attribute