bug fix of generated files