fixed a bug with invalid thread search syntax