fixed createPreview()