Corrected but where l should be double in hist set_ranges