Fix compilation error in routes