diff --git a/e-util/e-bit-array.c b/e-util/e-bit-array.c
index 842361d..5c20255 100644
--- a/e-util/e-bit-array.c
+++ b/e-util/e-bit-array.c
@@ -102,7 +102,7 @@ e_bit_array_delete_real (EBitArray *eba, gint row, gboolean move_selection_mode)
 		eba->bit_count--;
 		/* Remove the last word if not needed. */
 		if ((eba->bit_count & 0x1f) == 0) {
-			eba->data = g_renew (guint32, eba->data, eba->bit_count >> 5);
+			eba->data = g_renew (guint32, eba->data, (eba->bit_count >> 5) + 1);
 		}
 		if (move_selection_mode && selected && eba->bit_count > 0) {
 			e_bit_array_select_single_row (eba, row == eba->bit_count ? row - 1 : row);
