diff --git a/openquake/commonlib/source.py b/openquake/commonlib/source.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/source.py
+++ b/openquake/commonlib/source.py
@@ -365,7 +365,7 @@ class CompositionInfo(object):
         """
         sm = self.source_models[sm_id]
         return self.__class__(
-            self.gsim_lt, self.seed, self.num_samples, [sm], self.tot_weight)
+            self.gsim_lt, self.seed, sm.samples, [sm], self.tot_weight)
 
     def __getnewargs__(self):
         # with this CompositionInfo instances will be unpickled correctly
Small fix in case of sampling


Former-commit-id: caedbc<I>e<I>e9fb<I>fca<I>d<I>cc<I>b4