Fixed a bug with the temporary text box