diff --git a/src/freedombone-utils-selector b/src/freedombone-utils-selector
index 0e1e3a5e5429342a5ab2ec561eae0d3cc057857c..6ff9b2c56120d32199a7799ae06b0a494a50a5da 100755
--- a/src/freedombone-utils-selector
+++ b/src/freedombone-utils-selector
@@ -100,8 +100,8 @@ function choose_apps_for_variant {
 			APPS_AVAILABLE+=("${app_name}")
 
 			if grep -q "VARIANTS=" ${filename}; then
-				variants_list=$(cat ${filename} | grep "VARIANTS=" | awk -F '=' '{print $2}' | awk -F "'" '{print $2}')
-				if [[ "${variants_list}" == "$variant_name "* || ${variants_list} == *" $variant_name "* || ${variants_list} == *" $variant_name" ]]; then
+				variants_list="$(cat ${filename} | grep "VARIANTS=" | awk -F '=' '{print $2}' | awk -F "'" '{print $2}')"
+				if [[ "${variants_list}" == "$variant_name "* || "${variants_list}" == *" $variant_name "* || "${variants_list}" == *" $variant_name" ]]; then
 					APPS_CHOSEN+=("1")
 				else
 					APPS_CHOSEN+=("0")