generator: fix warning