restore permalink in config