Fix state equality.