Fix protocol, fix unread messages