Fixed method invocation bug