Fixed the textbox finally...doesn't segfault