Fixed an mistake in method invocation