ouch. fix for handleGUI