fixed another bug, if there were not messages found it wouldnt work