Fix handling index of certinfo when save certinfo

No match.