Initialized pendingNodes in the declaration.
Merge branch 'template-instance-cap-fix'