fix a bug in completion of argument lists