diff --git a/doc/xschem_man/create_pdf_man b/doc/xschem_man/create_pdf_man
old mode 100644
new mode 100755
index 68cfa9bf..625e6f23
--- a/doc/xschem_man/create_pdf_man
+++ b/doc/xschem_man/create_pdf_man
@@ -22,12 +22,12 @@ generate_pdf () {
root_file=$1
output_file=$2
- #### transform local urls to video tutorial videos to sourceforge hosted videos.
- sed -i '/href *= *"video_tutorials\//s/="/="https:\/\/xschem.sourceforge.io\/stefan\/xschem_man\//' $root_file
#### copy all docs in temporary directory since we must resize images.
mkdir -p $tmpdir
cp $(dirname $root_file)/*.html $(dirname $root_file)/*.png $tmpdir
cd $tmpdir
+ #### transform local urls to video tutorial videos to sourceforge hosted videos.
+ sed -i '/href *= *"video_tutorials\//s/="/="https:\/\/xschem.sourceforge.io\/stefan\/xschem_man\//' $(basename $root_file)
#### resize images since htmldoc does not fit images in pdf pages at all.
sed -i '// width="640">/' *.html
diff --git a/doc/xschem_man/install_xschem.html b/doc/xschem_man/install_xschem.html
index 1d9c91c9..394c99b8 100644
--- a/doc/xschem_man/install_xschem.html
+++ b/doc/xschem_man/install_xschem.html
@@ -105,7 +105,7 @@ p{padding: 15px 30px 10px;}