fixes marking messages as read