Fixed setting of the output filename