Fix codec-invocation bug.