Fix the order of routes