Fixes reference to children