Fix syntax error and generator message