fixed logout error: