Fix transcoding bug