correct bug with using same generators multiple times