Fix a problem with the display of the phase in the context when the subproject is deleted and recreated.