diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c
index c6ec657a93..d3c6b0d805 100644
--- a/src/backend/postmaster/autovacuum.c
+++ b/src/backend/postmaster/autovacuum.c
@@ -1834,7 +1834,7 @@ autovac_balance_cost(void)
             * cost_limit to more than the base value.
             */
            worker->wi_cost_limit = Max(Min(limit,
-                                           worker->wi_cost_limit_base),
+                                           MAXVACUUMCOSTLIMIT),
                                        1);
        }

