diff --git a/src/freedombone-addremove b/src/freedombone-addremove
index 5f5cdcece8525a6dd3c000d406a6689b31310ee6..df4b621d53393b890da8e8807718c669e1788ee7 100755
--- a/src/freedombone-addremove
+++ b/src/freedombone-addremove
@@ -163,14 +163,16 @@ function remove_apps_selected {
     # shellcheck disable=SC2068
     for a in ${APPS_INSTALLED[@]}
     do
-        if [[ ${APPS_INSTALLED[$app_index]} == "1" ]]; then
-            if [[ ${APPS_CHOSEN[$app_index]} == "0" ]]; then
-                if [ ${n} -gt 0 ]; then
-                    removals="$removals ${APPS_AVAILABLE[$app_index]}"
-                else
-                    removals="${APPS_AVAILABLE[$app_index]}"
+        if [[ $(app_not_on_onion_only "$a") != "0" ]]; then
+            if [[ ${APPS_INSTALLED[$app_index]} == "1" ]]; then
+                if [[ ${APPS_CHOSEN[$app_index]} == "0" ]]; then
+                    if [ ${n} -gt 0 ]; then
+                        removals="$removals ${APPS_AVAILABLE[$app_index]}"
+                    else
+                        removals="${APPS_AVAILABLE[$app_index]}"
+                    fi
+                    n=$((n+1))
                 fi
-                n=$((n+1))
             fi
         fi
         app_index=$((app_index+1))
@@ -208,14 +210,16 @@ function install_apps_selected {
     # shellcheck disable=SC2068
     for a in ${APPS_INSTALLED[@]}
     do
-        if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then
-            if [[ ${APPS_CHOSEN[$app_index]} == "1" ]]; then
-                if [ ${n} -gt 0 ]; then
-                    installs="$installs ${APPS_AVAILABLE[$app_index]}"
-                else
-                    installs="${APPS_AVAILABLE[$app_index]}"
+        if [[ $(app_not_on_onion_only "$a") != "0" ]]; then
+            if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then
+                if [[ ${APPS_CHOSEN[$app_index]} == "1" ]]; then
+                    if [ ${n} -gt 0 ]; then
+                        installs="$installs ${APPS_AVAILABLE[$app_index]}"
+                    else
+                        installs="${APPS_AVAILABLE[$app_index]}"
+                    fi
+                    n=$((n+1))
                 fi
-                n=$((n+1))
             fi
         fi
         app_index=$((app_index+1))