fixed logout error