fix automatic increase and decrease of cntTasksToComplete
Merge remote-tracking branch 'origin/dev' into dev