fix the bugs of message receive