Correct error in generation of files