fixed small issue with thread