Fixed focusGained-problem in GUI.