generator: fixed C generator