diff --git a/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ai/train.py b/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ai/train.py
index bd1130b..1312715 100644
--- a/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ai/train.py
+++ b/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ai/train.py
@@ -77,7 +77,7 @@ class Stats(object):
                     }
                 })
 
-            temp = ".%s.tmp" % self.path
+            temp = "%s.tmp" % self.path
             with open(temp, 'wt') as fp:
                 fp.write(data)
 
@@ -109,7 +109,7 @@ class AsyncTrainer(object):
 
     def _save_ai(self):
         core.log("[ai] saving model to %s ..." % self._nn_path)
-        temp = ".%s.tmp" % self._nn_path
+        temp = "%s.tmp" % self._nn_path
         self._model.save(temp)
         os.replace(temp, self._nn_path)