Fix incorrect update for unread state of items