fix timestamp bug in message id