fixed a bug in GUIController