fix home redirection problem