Found it,
whenever I'm using multi threading and using this C# code for pasting, the templates probably can't copy and paste one by one so it gets stuck,
this is the code, I remember HB gave it to me once, but only now I noticed that I'm having problems with it, I'll try to find other solutions.