Improve the grammar of this text: He was sentenced to death during World War I (later commuted to 25 years hard labor) for desertion and spreading propaganda.
He was sentenced to death during World War I (later commuted to 25 years hard labor) for desertion and spreading propaganda.