fixup autogencode