Fix issue when deleting a temporary project.