fixed logout issue