I recalled some ancient unexplainable hack.
Note: maybe you need this hack only in one place (either after “Update” or after “delete”, try it).
I remember that sometimes two “ProcessEvents” were needed (probably with only a single “Sleep”) with the Linux X11 and especially with the macOS Cocoa backends.