major bugfix: error when there were new messages