Fix crash when clicking settings or music buttons in ingame menu