Fixed unread counter
Changed task tree modification logic