fixed a bug with getting out of kiosk mode