Fix typo

Note that obviously thread will not be accessible