fix route patterns