fixing links in preview mode