diff --git a/lib/onnx/writer.ml b/lib/onnx/writer.ml
index 60c8d19e1e9291f65da1d21db726b37e450f0d28..6b8d6f3eff756c70a96d77dcdc5deea99e86e0fe 100644
--- a/lib/onnx/writer.ml
+++ b/lib/onnx/writer.ml
@@ -58,7 +58,7 @@ let convert_into_tensor ?name (t : Nir.Gentensor.t) =
 let default_opset_import =
   let open Oproto.Onnx in
   let onnx_domain = "" in
-  OperatorSetIdProto.make ~domain:onnx_domain ~version:22L ()
+  OperatorSetIdProto.make ~domain:onnx_domain ~version:13L ()
 
 let nir_to_onnx_protoc (nir : Nir.Ngraph.t) =
   let open Oproto.Onnx in