Changes Category setChild method usage
Corrected depended on public fields classes.