diff --git a/JSAT/src/jsat/utils/DoubleList.java b/JSAT/src/jsat/utils/DoubleList.java
index <HASH>..<HASH> 100644
--- a/JSAT/src/jsat/utils/DoubleList.java
+++ b/JSAT/src/jsat/utils/DoubleList.java
@@ -113,7 +113,7 @@ public class DoubleList extends AbstractList<Double> implements Serializable
     private void enlageIfNeeded(int i)
     {
         while(end+i > array.length)
-            array = Arrays.copyOf(array, array.length*2);
+            array = Arrays.copyOf(array, Math.max(array.length*2, 8));
     }
     
     @Override
diff --git a/JSAT/src/jsat/utils/IntList.java b/JSAT/src/jsat/utils/IntList.java
index <HASH>..<HASH> 100644
--- a/JSAT/src/jsat/utils/IntList.java
+++ b/JSAT/src/jsat/utils/IntList.java
@@ -156,7 +156,7 @@ public class IntList extends AbstractList<Integer> implements Serializable
     private void enlargeIfNeeded(int i)
     {
         while(end+i > array.length)
-            array = Arrays.copyOf(array, array.length*2);
+            array = Arrays.copyOf(array, Math.max(array.length*2, 8));
     }
     
     /**
Bug fix, if created with a size of zero the Lists never expands in size (and enters an infinite loop the way I wrote it) 

git-svn-id: <URL>