Fix corrupt state