fix some bugs of long message