fix states->state