fix user redirection