link fix in templates