resolve logout error