fixed the thread issue