DrawDebugBox bug (lines do not dissapear)

For some reason, I can’t remove debug lines in Editor.

They persist in editor. I even changed colors and recompiled code with live coding or restarted editor.

I call this funciton with CallInBluePrint

DrawDebugBox(
    world,
    locationIn,
    paramsIn.DebugParams.DebugBoxSize / 2,
    rotationIn,
    FColor::Purple,
    false,
    // paramsIn.DebugParams.DisplayTime,
    1.f, /* LifeTime */
    0, /* Depth */
    2.f /* Thick */
);

Only manual flushing works.

FlushPersistentDebugLines(world);

Other symptoms of invalid world was.

I could not snap actors to ground.

Overlap functions would not detect collision or query any Overlap or Trace functions.
So my collisions were always false and nothing was detected.

I found the issue. In my case.

Problem was Level automatically loaded by Editor.
After switching level to other and back everything worked again!

Snap workded.
Collision worked.
Drawing non persistent lines too.