fixed initialization of turnstate