Minor fix for creating routes