bug: crash when clicking on any button in a GUI