Fixed some reporting stuff and sampling value used in subtotals