Fixing bug in figuring out parents
Merge pull request #66 from rendom/master

Fixing bug in figuring out parents