Fixed logout error