Fixed _applyRoutes