fix redirection for admin