COLUMBIA, S.C. (AP)  A South Carolina judge has overturned a death sentence for a man convicted of killing his estranged wife while awaiting trial on charges he had raped and kidnapped her.

Prosecutors said Monday a judge had instead opted to sentence Louis Winkler to life in prison, citing errors made by his defense attorney at trial. State prison officials said Monday that Winkler was still on death row, and it wasn’t immediately clear when he would be moved to a different cell.