fixed the logout error