This is how to reproduce the bug: have a layout with two layers. Select two shapes of different layers and delete them. One layer is not updated and only after zooming/panning the shape will disappear on this layer.
Move ut framework to tl, so there are less complex dependencies.