Fix a bug when calling methods with empty arguments