diff --git a/src/freedombone-utils-webadmin b/src/freedombone-utils-webadmin
index e674c0031a3e2ff294843ccd510206be17b4529c..8aa6571de5fb6f48ce74957f3659071d214e017a 100755
--- a/src/freedombone-utils-webadmin
+++ b/src/freedombone-utils-webadmin
@@ -329,18 +329,22 @@ function web_admin_create_add_apps {
         fi
     done
 
-    # Complete the rest of the four column row
-    # shellcheck disable=SC2034
-    for i in $(seq ${available_apps_ctr} 3)
-    do
-        { echo '      <div class="column">';
-          echo '        <div>';
-          echo '        </div>';
-          echo '      </div>'; } >> "$appslist_add_filename"
-    done
+    if [ ${available_apps_ctr} -gt 0 ]; then
+        # Complete the rest of the four column row
+        # shellcheck disable=SC2034
+        for i in $(seq ${available_apps_ctr} 3)
+        do
+            { echo '      <div class="column">';
+              echo '        <div>';
+              echo '        </div>';
+              echo '      </div>'; } >> "$appslist_add_filename"
+        done
+        echo '    </div>' >> "$appslist_add_filename"
+    fi
 
-    echo '  </body>' >> "$appslist_add_filename"
-    echo '</html>' >> "$appslist_add_filename"
+    { echo '    <br><br>';
+      echo '  </body>';
+      echo '</html>'; } >> "$appslist_add_filename"
 
     chown -R www-data:www-data "$webadmin_install_dir"
 }
@@ -475,18 +479,22 @@ function web_admin_create_installed_apps {
         app_index=$((app_index+1))
     done
 
-    # Complete the rest of the four column row
-    # shellcheck disable=SC2034
-    for i in $(seq ${installed_apps_ctr} 3)
-    do
-        { echo '      <div class="column">';
-          echo '        <div>';
-          echo '        </div>';
-          echo '      </div>'; } >> "$appslist_filename"
-    done
+    if [ ${installed_apps_ctr} -gt 0 ]; then
+        # Complete the rest of the four column row
+        # shellcheck disable=SC2034
+        for i in $(seq ${installed_apps_ctr} 3)
+        do
+            { echo '      <div class="column">';
+              echo '        <div>';
+              echo '        </div>';
+              echo '      </div>'; } >> "$appslist_filename"
+        done
+        echo '    </div>' >> "$appslist_filename"
+    fi
 
-    echo '  </body>' >> "$appslist_filename"
-    echo '</html>' >> "$appslist_filename"
+    { echo '    <br><br>';
+      echo '  </body>';
+      echo '</html>'; } >> "$appslist_filename"
 
     chown -R www-data:www-data "$webadmin_install_dir"
 }