fix link tmpl lookup