error in generated syntax