fix method bug