deletion index error fix