Fix shift-click crash in GUIs