fixed preview error