Replace this in $child with self

Fixes $child wrapper