fix method call issue