fix error in template lookup for render