Fixed minor bug in Text command window.