fix send message bug on safari.