fixed previewTextFile