fixing URL pattern issue