fix home page logout bug