Monitor: fixed collecting and outputting of histogram snapshots.