Fix delete and unread count