Fixed the logout