fixed another subsampling bug