minor fix in thread parser