diff --git a/build_lofar.sh b/build_lofar.sh
index 648527362b59800ae28be9c22b6ae4bef0431e8d..37a2578dfc484bc8c5f5e055604acc69dfd8e674 100755
--- a/build_lofar.sh
+++ b/build_lofar.sh
@@ -410,13 +410,10 @@ if [ ! -e $prefix/.done ]; then
     if [ -e src ]; then
         echo "Using existing sources."
     else
-        git clone https://gitlab.com/aroffringa/aoflagger.git presrc
+        git clone https://gitlab.com/aroffringa/aoflagger.git src
         if [ "$aoflagger_version" != "latest" ]; then
-            ( cd presrc && git checkout tags/v$aoflagger_version )
+            ( cd src && git checkout tags/v$aoflagger_version )
         fi &&
-        #echo "Patching build (for BLAS, Boost, Python, usually) ..." && 
-        #(cd presrc && patch -Np1 < "$scriptdir/aoflagger-buildfix.patch" ) &&
-        mv presrc src
     fi &&
     mkdir build &&
     cd    build &&
@@ -449,10 +446,7 @@ if [ ! -e $prefix/.done ]; then
     if [ -e src ]; then
         echo "Using existing sources."
     else
-        git clone https://git.astron.nl/RD/EveryBeam.git presrc
-        #echo "Patching build (for BLAS, Boost, Python, usually) ..." && 
-        #(cd presrc && patch -Np1 < "$scriptdir/EveryBeam-buildfix.patch" ) &&
-        mv presrc src
+        git clone https://git.astron.nl/RD/EveryBeam.git src
     fi &&
     mkdir build &&
     cd    build &&