fix parent types calculation
Merge pull request #1851 from dimagi/parent-fix

fix parent types calculation