fix applying of thread attrs