Seems to me that his punishment for past crimes wasn't concluded. His punishment apparently was that he'd be locked up for a specfic period of time, plus have his right to a gun and a vote taken away for life. I propose that thinking that his punishment is limited to the term of incarceration is a mistake.
By the way, what's disputed about the law? Has someone filed a lawsuit disputing it's Constitutionality?