fix ofThread example in docs