fix to preview