fixes permalink url