fix crash when recv unexpected package from message queue.