fix for nested templates where target object is one level removed