fix bug when completion result is a word