fixed an issue with the text boxes that results in a seg fault