extract: fix issue with template files in the input graph
extract: fix template comparison (isolate issue)