fix parallel bug