Fix incorrect thread