Fixed bug with route pattern matching