Fixed bug using multiple generators in offline