Judge overturns death penalty sentence