Sorry @Kulkul
You replied before I had a chance to edit my post.
I just tried you script and it has the same problems. There has been a similar issue but ideally I don’t want to unpin.