fix syntax error in generated script