Fixed Textbox wiping issue

As well as (hopefully) the speed-related issue.