Fixing a bug which caused mapping of method to fail for generic methods.