fix messages read/unread properly this time