fix redirection to correct controller