Returning correct totals when deleting