fix method check