Fix bad thread import.