fix bug in url patterns