Human rights activists stage a protest outside a court in Istanbul, Wednesday, Oct. 25, 2017 where eleven human rights activists go on trial, accused of belonging to and aiding terror groups. They hold placards demanding the release of Amnesty's Turkey chairman Taner Kilic, who was imprisoned separately in June, and goes on trial in the city of Izmir for alleged links to U.S.-based cleric Fethullah Gulen, blamed by the government for last year's coup attempt. (AP Photo/Lefteris Pitarakis)

Human rights activists stage a protest outside a court in Istanbul, Wednesday, Oct. 25, 2017 where eleven human rights activists go on trial, accused of belonging to and aiding terror groups. They hold placards demanding the release of Amnesty's Turkey chairman Taner Kilic, who was imprisoned separately in June, and goes on trial in the city of Izmir for alleged links to U.S.-based cleric Fethullah Gulen, blamed by the government for last year's coup attempt. (AP Photo/Lefteris Pitarakis)

ANKARA, Turkey (AP) — A Turkish court on Thursday ruled that Amnesty International’s Turkey chairman Taner Kilic remain jailed pending a verdict in his trial a day after a separate court released eight other human rights activists on bail, the rights organization said.

Taner Kilic, was imprisoned in June, accused of links to cleric Fethullah Gulen, whom Turkey says orchestrated last year’s failed coup attempt. Kilic is accused of using an encrypted mobile messaging application allegedly employed by Gulen’s network. Gulen himself has denied masterminding the coup attempt.

ADVERTISEMENT

Kilic was being tried separately from a group of other activists who were detained in a police raid in July while attending a training workshop on digital security. They were charged with belonging to terror organizations and abetting them.

The activists, including Amnesty International Turkey director Idil Eser, German citizen Peter Steudtner and Swede Ali Gharavi, were freed late on Thursday by a court in Istanbul pending the outcome of the trial at the end of their opening hearing.

“Over the last 24 hours we have seen the twin hands of Turkey’s fickle justice system at play,” said Salil Shetty, Amnesty International’s Secretary General, expressing disappointment over the decision to remand Kilic in custody. “While one grants liberty, the other, confronted with no less baseless charges, takes it away.”

Amnesty denies that Kilic downloaded and used the ByLock messaging application, which Turkish authorities say was used by the Gulen movement.

“Two independent forensic analyses of Taner’s phone commissioned by Amnesty International found that there is no trace of ByLock having been on his phone,” the group said.

In Berlin, German officials greeted the Istanbul court’s decision to free Steudtner and seven other activists, saying it could portend the beginning of better relations between Germany and Turkey.

Justice Minister Heiko Maas said Steudtner’s release was an “encouraging sign.” Still, he said, “the remaining German citizens who are in custody without justification or charges must be set free.”

Several other Germans were arrested in the aftermath of the failed coup in Turkey, including journalist Deniz Yucel.

Foreign Minister Sigmar Gabriel said Germany would continue fighting for all of their release, but called Steudtner’s release Wednesday night “a first sign” relations were improving.

He told Der Spiegel magazine that former Chancellor Gerhard Schroeder had helped negotiate Steudtner’s release.