Fixed GUI and TextGUI issues.