Fix bug where exit button could be disabled.