fixed logout and clicking on iOS