Fixed the error state.