fix compile problem for new function in RouteController