Fix issue with child being undefined.