Issue #2216371: Fix regression where child weight was not being set correctly