fix match routes