fixed regeneration when using multiple generator instances