Correction to calculation of 'all' keyword.