fix parallel mode