fix bridge method gen