Fix calculation of subset for projects