fixed parallel bug