Bug fix in messages mark as read