Have you insert the anchored items using the this methods insertionPoints or insertionPoints[-1]. Otherwise can you post your script.
Thanks for your swift response,
We are not using the insertionPoints instead we use "Characters()/Words()" collection to insert anchor objects/applying character style etc.
If you use the "Characters/Words" it will happen sure. Why you not use the "insertionPoints/insertionPoints[-1]. Have you try this method. Please check once again!
This sometimes happens. It's annoying and should not happen, but it does. There's nothing you can do about it.