See #71

Regtest crashes
There was a bug when histogram was run with USE_ALL_DATA

Fixes #71
Merge branch 'issue-71' into v2.0