Fix setDefaultRoute to work with passed parameters.