Fix output to textbox