Fix previewmode