Corrects the routes