Fixed logout problem.