Fix bug when receive message header.