fixed a wrong spelling of thread state