fixed the redirect bug on the home page