Fix Multithreadissue