Fixed issue with url pattern matching.