fix a sending message bug