Correct the initial file generation code.