restore hdiff histogram range