Subsampling bug in feature extraction fixed