--- a/ArrayList.c
+++ b/ArrayList.c
@@ -20,7 +20,7 @@
 ArrayList* ArrayList_new(int dim, void* deletefn)
 {
     ArrayList* self = ArrayList_new0(deletefn);
-    self->count = 0;
+    self->count = dim;
     self->reserved = dim;
     self->items = (void**)malloc(self->reserved * sizeof(void*));
     int index;