LOUISVILLE, KY. (WDRB) -- A mentally ill inmate convicted of a killing a Jefferson County sheriff's deputy could soon get out of jail.

The Kentucky Supreme Court ordered the state to reinstate credit for time served to Peter Bard.

He was charged in the shooting death of deputy Floyd Cheeks in Louisville's west end in 1993.

But the trial was delayed nine years because of Bard's mental illness.

The high court found that the Department of Corrections did not have the authority to revoke credit given to Bard for nearly six years served in a mental institution before going to trial.

Copyright 2011 WDRB News.  All rights reserved.