fix error when call full document endpoint