Correct the output file extension.