[sgen] Fix canary pinning bug.