fixed logout problem