fix the unread message count