fix publication bug, links in emails