Fix for totals