Fixed minor bugs related to Controller class handling redirections