thread issue fixed