fix method invocation error