Fix for add new thread