The United States will continue to provide intelligence to Ukraine after recent personnel changes in the inner circle of Ukrainian President Volodymyr Zelenskyy, the U.S. State Department said on Monday.

Zelenskyy sidelined his childhood friend as head of Ukraine’s security service, and another close ally as top prosecutor, in Kyiv’s biggest internal purge of the war, citing the failure of the two to root out Russian spies.

Zelenskyy acknowledged that his two allies — SBU security service chief Ivan Bakanov and Prosecutor General Iryna Venediktova — had failed to identify “traitors” in their organizations.

“We are in daily contact with our Ukrainian partners. … We invest not in personalities, we invest in institutions,” State Department spokesperson Ned Price told reporters in a news briefing.

“We do have an intelligence-sharing relationship with our Ukrainian counterparts. … We continue to proceed ahead with that,” he added.

More than 60 officials from Bakanov’s SBU security agency and the prosecutor’s office were working against Ukraine in Russian-occupied territory, and 651 treason and collaboration cases had been opened against law enforcement officials, Zelenskyy said earlier.

Zelenskyy, widely feted on the world stage as a decisive wartime leader, had been dogged before the invasion by accusations that he had named friends and other outsiders to jobs in which they were out of their depth.

Bakanov, a friend since their childhood in southern Ukraine, had helped run Zelenskyy’s media business during his television career. He then led the campaign in which Zelenskyy was elected in a landslide.

Venediktova, a jurist who attended a meeting just last week in the Hague discussing the international effort to prosecute Russian war crimes in Ukraine, had advised Zelenskyy on judicial reform since he entered politics.