Fixed a bug in Text.