fixing issue with URL pattern