switched parent_id for parent

fixes #3333
Merge pull request #3335 from ErisDS/issue-3333

switched parent_id for parent