make message parsing more stable.