Bug fix for child assign to parent