fix unstable hist test