threads example - minor fix