Fix callback in renameRoutes