Fixing HistogramEqualization for new Sample