double logout fix