fixing location totals