Fix a bug when saving a previously deleted project