fix parallelisation error