Resizing of histogram not fully ok