diff --git a/contrib/bloom/blvacuum.c b/contrib/bloom/blvacuum.c
index d2703b02b2c82eb72d462cec88b369e25d3e9a7b..19c010c2524519fe00605e1e17c483c976917cb7 100644
--- a/contrib/bloom/blvacuum.c
+++ b/contrib/bloom/blvacuum.c
@@ -112,7 +112,7 @@ blbulkdelete(IndexVacuumInfo *info, IndexBulkDeleteResult *stats,
 		 * Add page to notFullPage list if we will not mark page as deleted and
 		 * there is a free space on it
 		 */
-		if (BloomPageGetMaxOffset(page) == 0 &&
+		if (BloomPageGetMaxOffset(page) != 0 &&
 			BloomPageGetFreeSpace(&state, page) > state.sizeOfBloomTuple &&
 			countPage < BloomMetaBlockN)
 			notFullPage[countPage++] = blkno;