Replace this in  with self
Merge pull request #180 from allansideas/fix-child

Replace this in $child with self