TasksStats object initialization bug fixed