fixed child parent assignment
Merge pull request #5 from qbio2014/richard

fixed child parent assignment