diff --git a/src/pystencils_autodiff/tensorflow_jit.py b/src/pystencils_autodiff/tensorflow_jit.py
index 99bd6d751707a631cf0e6538a45ffce7b17163cc..ed69c3b296bb82b28268d593c6897846a7c88c87 100644
--- a/src/pystencils_autodiff/tensorflow_jit.py
+++ b/src/pystencils_autodiff/tensorflow_jit.py
@@ -147,7 +147,7 @@ def compile_file(file, use_nvcc=False, nvcc='nvcc', overwrite_destination_file=T
                           *additional_compile_flags,
                           _output_flag]
 
-    destination_file = f'{file}_{_hash(".".join(command_prefix).encode()).hexdigest()}.{_object_file_extension}'
+    destination_file = f'{file}_{_hash(".".join(command_prefix).encode()).hexdigest()}{_object_file_extension}'
 
     if not exists(destination_file) or overwrite_destination_file:
         command = command_prefix + [destination_file]