complete the preview error issue