Added better handling of exceptional cases in hist
so i herd u w4nt mo seed