fix bug with nested tasks status