Fixed bugs in FamilyAddGoods.