Fixed generated proxy code to match previous code generation