Fix generation method for argument completion.