Pakistan’s former Prime Minister Nawaz Sharif is to remain in prison despite a ruling by the country’s Supreme Court that upheld a lower court’s decision that freed him on bail, AP reported.

Sharif and his family have been embroiled in several trials and an array of corruption charges following his ouster from office in July 2017.

The top court on Monday ruled against the prosecution, which had sought to overturn a verdict from September that suspended Sharif’s 10-year sentence over the purchase of luxury apartments in London.

Following that suspension, Sharif was released on bail four months ago but was again sent to prison when another court convicted him in December and sentenced him to seven years on graft charges.

He is appealing that sentence separately.