fixed bug when defining the sampling design for the first time