fix deleteIndex when no index