Fixes issue where all proxy methods were generated with public
visibility