A bug fixed.

A text object is deleted when canceling text rewriting.