Fix for totals after record deletion.