Fix syntax error generator