Fixed a bug in the TextControl.