Fix false  preview file generate error