fix bug with new messages