fix single document error