fix route cmp function