Fixed another bug in the loadRoutes method