delete index bug while computing delta