corrected preview error