edit state fix