fixing totals issue
fix get totals