Corrected bug if no last project exits