Fix completion function.
[ci skip]