minor fix
with thread