fix the send hello message bug