Fix compilation of routes