fixed file generation error