fix method wrapping