fix file preview