Fix bug for args in methods with generics