fixed bug when completing arguments