histogram fix