generator: fix voltgen