also patch output_type

output_type must also be patched.