fix Thread.list bug