Fix wrapper generation.