Fix stackoverflow with completion item.