fixed some bugs where message IDs duplicated too often