diff --git a/owner/src/main/java/org/aeonbits/owner/loaders/XMLLoader.java b/owner/src/main/java/org/aeonbits/owner/loaders/XMLLoader.java
index <HASH>..<HASH> 100644
--- a/owner/src/main/java/org/aeonbits/owner/loaders/XMLLoader.java
+++ b/owner/src/main/java/org/aeonbits/owner/loaders/XMLLoader.java
@@ -33,7 +33,7 @@ import java.util.Stack;
  */
 public class XMLLoader implements Loader {
 
-    private volatile SAXParserFactory factory = null;
+    private transient volatile SAXParserFactory factory = null;
 
     private SAXParserFactory factory() {
         if (factory == null) {
fixing serialization issue happening with some jdks