diff --git a/src/main/java/org/htmlunit/util/OrderedFastHashMap.java b/src/main/java/org/htmlunit/util/OrderedFastHashMap.java
index 38fdf3960fc..6a6afcd50e4 100644
--- a/src/main/java/org/htmlunit/util/OrderedFastHashMap.java
+++ b/src/main/java/org/htmlunit/util/OrderedFastHashMap.java
@@ -668,7 +668,7 @@ private void readObject(final ObjectInputStream aInputStream) throws ClassNotFou
final K key = (K) srcData[pos];
final V value = (V) srcData[pos + 1];
- put((K) key, value);
+ put(key, value);
}
}