SubSampling bugs fixed.