Fixed problem with text window.