Fixed logout crash