fixed logout bug