Fixed ProjectTree regression

My bad. The project tree was collapsing some nodes here and there due to
my 'optimization'.