Maybe its the thread causing the issue