fixed relative links in templates