selection of the exit button.

one little change that was causing bugs