I didn’ t have snap to guide active.
It seems that pick tool was the problem. Now I have tried several times with mowe tool without any problems. I have redone the duplicate script several times just to find out if everything works just fine.
Thank you so much for your help.