fixed row-sampling order bug