Fix off-by-one bug in GUIController