permalink ref fix