check state fix