fixed another bug with message IDs