fix method duplicate bug