completion fix when cursor in on position 0 and 1