diff --git a/src/scripts/model_maker.py b/src/scripts/model_maker.py
index a1ab00cf56dc80110226d091eeacfe53e7191809..db848890cbfe7eadfc35dcdc0b5fb372d3e6d99e 100755
--- a/src/scripts/model_maker.py
+++ b/src/scripts/model_maker.py
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 
-#   Copyright (C) 2024   INAF - Osservatorio Astronomico di Cagliari
+#   Copyright (C) 2025   INAF - Osservatorio Astronomico di Cagliari
 #
 #   This program is free software: you can redistribute it and/or modify
 #   it under the terms of the GNU General Public License as published by
@@ -145,7 +145,11 @@ def load_model(model_file):
         print("ERROR: " + model_file + " was not found!")
     if model is not None:
         max_rad = 0.0
-        make_3d = False if model['system_settings']['make_3D'] == "0" else True
+        make_3d = False
+        try:
+            if model['system_settings']['make_3D'] == "0" else True
+        except KeyError:
+            make_3d = False
         if (make_3d and not allow_3d):
             print("WARNING: 3D visualization of models is not available. Disabling.")
             make_3d = False
diff --git a/src/scripts/pycompare.py b/src/scripts/pycompare.py
index bd061b110f4c234c45631bf54e5494e90e71262d..778e40554789e73f1231893f9c4110fb0e4a75b3 100755
--- a/src/scripts/pycompare.py
+++ b/src/scripts/pycompare.py
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 
-#   Copyright (C) 2024   INAF - Osservatorio Astronomico di Cagliari
+#   Copyright (C) 2025   INAF - Osservatorio Astronomico di Cagliari
 #
 #   This program is free software: you can redistribute it and/or modify
 #   it under the terms of the GNU General Public License as published by
diff --git a/src/scripts/pydynrange.py b/src/scripts/pydynrange.py
index 491f68f80e83ac7542ce3b9eb873e1fbe813f6a2..5dd250a3b6f5dc0d6272b38b2c08c25873b8b9a0 100755
--- a/src/scripts/pydynrange.py
+++ b/src/scripts/pydynrange.py
@@ -1,6 +1,6 @@
-#!/bin/python3
+#!/usr/bin/env python3
 
-#   Copyright (C) 2024   INAF - Osservatorio Astronomico di Cagliari
+#   Copyright (C) 2025   INAF - Osservatorio Astronomico di Cagliari
 #
 #   This program is free software: you can redistribute it and/or modify
 #   it under the terms of the GNU General Public License as published by
diff --git a/src/scripts/pytiming.py b/src/scripts/pytiming.py
index bc1ab97ae595ea8af25197e031f4befc50c38fce..c2d2e99e4acaf54250350612954df659f86a3ef9 100755
--- a/src/scripts/pytiming.py
+++ b/src/scripts/pytiming.py
@@ -1,6 +1,6 @@
-#!/bin/python3
+#!/usr/bin/env python3
 
-#   Copyright (C) 2024   INAF - Osservatorio Astronomico di Cagliari
+#   Copyright (C) 2025   INAF - Osservatorio Astronomico di Cagliari
 #
 #   This program is free software: you can redistribute it and/or modify
 #   it under the terms of the GNU General Public License as published by