ISLAMABAD (AP) — A Pakistani court granted bail Wednesday to former Prime Minister Imran Khan in a graft case, his lawyer said. But with a slew of other charges pending against him, the opposition leader is staying behind bars.

Still, the order by a superior court in the capital, Islamabad, was a boost for Khan in the case in which he is accused, along with his wife, Bushra Bibi, of keeping and selling state gifts in violation of government rules when he was in power.

His convictions were later overturned in appeals but he cannot be freed due to other, pending cases against him. Because the law is unclear in a situation with multiple cases, Khan has remained in the same prison in the garrison city of Rawalpindi where he has been incarcerated since his first conviction.

He has maintained his innocence and has argued that the cases are an attempt to sideline him politically by keeping him out of the public area.