fix resize for histogram