fixing url patterns