fix error documents