fix the preview