fix marking of message as read