change state fix