Fixed generating routes.