fix crash when user use Undo after sending text message