Fixing regression in 7143678d85 where generating a code doesn't work