[BUGFIX] Template identifier should check parent
Merge pull request #321 from hmspl/pr300

[BUGFIX] Template identifier should check parent