correct the order of routes