diff --git a/global.sh b/global.sh
index 160f3fae..dc105d84 100755
--- a/global.sh
+++ b/global.sh
@@ -6,7 +6,7 @@
 rd_conf="/var/config/retrodeck/retrodeck.cfg"              # RetroDECK config file path
 emuconfigs="/app/retrodeck/emu-configs"                    # folder with all the default emulator configs
 lockfile="/var/config/retrodeck/.lock"                     # where the lockfile is located
-sdcard="/run/media/mmcblk0p1"                              # Steam Deck SD default path
+default_sd="/run/media/mmcblk0p1"                          # Steam Deck SD default path
 hard_version="$(cat '/app/retrodeck/version')"             # hardcoded version (in the readonly filesystem)
 
 conf_write() {
@@ -63,6 +63,7 @@ then
   roms_folder="$rdhome/roms"                                 # the default roms folder path
   media_folder="$HOME/retrodeck/downloaded_media"            # the media folder, where all the scraped data is downloaded into
   themes_folder="$HOME/retrodeck/themes"                     # the themes folder
+  sdcard="$default_sd"                              # Steam Deck SD default path
 
   # writing the needed variables in the config file
   conf_write
diff --git a/retrodeck.sh b/retrodeck.sh
index 960e949b..e50a7ea3 100644
--- a/retrodeck.sh
+++ b/retrodeck.sh
@@ -373,7 +373,7 @@ finit() {
         --text="SD Card was not find in the default location.\nPlease choose the SD Card root.\nA retrodeck/roms folder will be created starting from the directory that you selected."
         browse # Calling the browse function
       else
-        roms_folder="$sdcard/retrodeck/roms"
+        roms_folder="$sdcard/retrodeck/roms"    # sdcard variable is correct as its given by browse function
         echo "ROMs folder = $roms_folder"
       fi
       ;;