Attempted to fix the thread creation error.