fix pattern urls