Fix: Index document gets deleted after indexing