fix missing var
Merge pull request #1896 from clarkorz/fix-missing-parentId

fix missing var