solve problems with the url pattern