diff --git a/LAMA.sh b/LAMA.sh
index 9110142e93e58464be7da1816c9bdcfc142fc894..9d8f8c4b5ca1f876b7a1918cef257158487273b3 100644
--- a/LAMA.sh
+++ b/LAMA.sh
@@ -394,7 +394,7 @@ ${gitrepotext}" \
                         else zenity --info --width 240 --height 240 --text "This option is not yet supported for your OS"
                         fi
                   elif [[ $updatewindow = "Update LAMA" ]]; then
-                        curl --header "" 'https://gitlab.rrz.uni-hamburg.de/api/v4/projects/3164/repository/files/lama%2Esh/raw?ref=main' > LAMA-temp.sh; rm $0; mv LAMA-temp.sh $0
+                        curl --header "" 'https://gitlab.rrz.uni-hamburg.de/api/v4/projects/3164/repository/files/LAMA%2Esh/raw?ref=main' > LAMA-temp.sh; rm $0; mv LAMA-temp.sh $0
                         lamaupdated=$(zenity --info --width 240 --height 240 --text "LAMA was updated" --ok-label "Reload LAMA")
                         if [ $? -eq 0 ]; then bash $0 & exit 0; fi
                   fi