A similar problem can be observed for deleted files. Proposed fixed (but I must confess I've no idea why the original code tried to set two distinct overlays):