Fix the bug about message id.