fix thread arg

Thx belarrius