Fixed a bug with getMethodThatMatchesParameters