fix computation of project environments