merge linked templates in fetched templates