Fixed bug affecting the tracking of running tasks.