Fixed the price calculation after added sub-resource.