Fix a Generator export bug

moritz++ and FROGGS++ for reminding me to look at ancient code critically.