filter2 fixes for histogram