Fixes syntax bug in routes