fix function to set number of parallel processes in Timeline