fix syntax in generated file