Histogram filter fix