The problem is something to do with the thread
I will try and fix it soon