diff --git a/IncBackups/templates/IncBackups/incrementalDestinations.html b/IncBackups/templates/IncBackups/incrementalDestinations.html
index 3eb3e5bbd..23e459cb2 100755
--- a/IncBackups/templates/IncBackups/incrementalDestinations.html
+++ b/IncBackups/templates/IncBackups/incrementalDestinations.html
@@ -35,7 +35,7 @@
diff --git a/plogical/restoreMeta.py b/plogical/restoreMeta.py
index 686e172b0..df8ce82ed 100644
--- a/plogical/restoreMeta.py
+++ b/plogical/restoreMeta.py
@@ -190,9 +190,9 @@ def main():
parser.add_argument('--backupFile', help='')
parser.add_argument('--dir', help='')
-
args = parser.parse_args()
+
if args.function == "submitRestore":
restoreMeta.startRestore(args.metaPath,args.statusFile)