Offenders building new lives after early release are yanked back into custody due to state’s mistak