MISSOULA, Mont. (AP) — The Montana Supreme Court has ordered a western Montana man who was convicted of incest, rape and sexual assault to be re-sentenced, agreeing that the judge failed to give him credit for time served between his arrest and sentencing.

Douglas Guill of Heron was sentenced in September 2008 to 50 years in prison without the possibility of parole on five felony convictions for keeping a woman captive and sexually molesting her for 14 years, starting when she was 6.

The Missoulian reports the Montana Supreme Court on April 14 granted Guill's petition for a re-sentencing, saying he was not given credit for the nearly two years he served between his November 2006 arrest and his sentencing.

Guill is 62. With credit for time served, he would be eligible for parole when he is 104.