Fix DeleteEntries persisting with wrong index