fix parallel generator