Fix frame state.