fix states order