fix completion in the case of empty current word