diff --git a/src/freedombone-installer b/src/freedombone-installer
index cbdd3c799cb0990670958fb693e9e533d8288f57..2f7c54431645157e2d7a292970974da6ced152ff 100755
--- a/src/freedombone-installer
+++ b/src/freedombone-installer
@@ -101,9 +101,26 @@ do
                 # switch on nginx authentication for freedombone.local
                 sed -i 's|#auth_basic|auth_basic|g' "/etc/nginx/sites-available/${local_hostname}"
 
-                # Show the web admin index page (not the initial setup page)
                 if [ -f "$webadmin_install_dir/index.prev" ]; then
+                    # Replace the installing screen with the main index page when done
+                    # It should reload by itself
+                    if [ -f "$webadmin_install_dir/setup_installing.prev" ]; then
+                        cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/setup_installing.html"
+                    fi
+
+                    # Replace the setup confirm screen with the main index
+                    if [ -f "$webadmin_install_dir/setup_confirm.html" ]; then
+                        cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/setup_confirm.html"
+                    fi
+
+                    # Replace the setup domain screen with the main index
+                    if [ -f "$webadmin_install_dir/setup_domain.html" ]; then
+                        cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/setup_domain.html"
+                    fi
+
+                    # Show the web admin index page (not the initial setup page)
                     cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/index.html"
+                    rm "$webadmin_install_dir/index.prev"
                 fi
 
                 # Remove the initial setup page
@@ -111,21 +128,6 @@ do
                     rm "$webadmin_install_dir/setup.prev"
                 fi
 
-                # Replace the installing screen with the main index page when done
-                # It should reload by itself
-                if [ -f "$webadmin_install_dir/setup_installing.prev" ]; then
-                    cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/setup_installing.html"
-                fi
-
-                # Replace the setup confirm screen with the main index
-                if [ -f "$webadmin_install_dir/setup_confirm.html" ]; then
-                    cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/setup_confirm.html"
-                fi
-
-                # Replace the setup domain screen with the main index
-                if [ -f "$webadmin_install_dir/setup_domain.html" ]; then
-                    cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/setup_domain.html"
-                fi
 
                 # set permissions for web admin site at freedombone.local
                 chown www-data:www-data "$webadmin_install_dir/*.html"