Fixes the children dublication bug