Fixed a wrong pattern about method invokes