Fix the Message cannot be serialize issue.