fixed issues with boolean type for totals