Even as corporate executives engage in a spree of share buybacks to spur stock prices higher, many have eschewed adding to their employee’s pension pots.

That’s according to Danielle DiMartino Booth of Quill Intelligence who picked out a few of the more standout firms whose “enthusiasm for funding pensions was subpar compared to buybacks.”

She lined up five of the worst offenders to illustrate that in the pursuit of higher stock prices and shareholder value corporations often left other pressing needs to languish. They include the likes of Boeing Co. BA, +6.83% , General Electric Co. GE, +0.99% and Lockheed Martin LMT, +2.09% .

In the chart below, the amount of buybacks and pension contributions between 2009 and 2017 for the five companies is compared alongside their respective pension funding ratio, which represents how much the company can deliver on its future pension obligations as a percentage of the plan’s total assets.

Quill Intelligence

One case Booth highlights in the chart is American Airlines Group Inc. AAL, +4.41% . Though, the airline carried around $18.3 billion of pension obligations, its pension system was only 62% funded even after a nine-year bull market.

Market participants have cited the prevalence of share repurchases to the stock market’s searing rise in the past few years, even as equities retreated from their record highs in October.

A report by Goldman Sachs said share buybacks could hit a record $1 trillion this year, nearly doubling last year’s haul. That could mean another year when buybacks would represent the largest use of cash for S&P 500 firms SPX, +1.59% .

See: Corporate pension plans could become fully funded once the 10-year yield rises above this level

But failing to keep pension plans funded can leave a nasty surprise for management and hamstring a company’s financial flexibility. In the throes of the 2007-09 recession, one of General Motors’ biggest issues was that pension obligations had drained whatever cash the car company had generated, funds that could have helped GM navigate its dire straits.

Moreover, firms that fail to sufficiently top up their employee’s pension plans are facing increasing fees from the Pension Benefit Guaranty Corporation, responsible for bailing out insolvent company pension funds. Bank of America Lynch estimates the PBGC’s insurance premiums for unfunded pensions will surpass 4% by 2019, after remaining at 1% in 2013.

To be sure, companies have done a better job at fixing their pension plans than municipal governments.

Pew Trusts reported the funded ratio for U.S. state retirement systems stood at 70.2% in the fiscal 2017 year. In comparison, the funded ratio for the 100 largest U.S. corporate pension plans was at 86% in 2017, according to Milliman, an actuarial consultancy.

See: Why is corporate America issuing debt to fill the holes in pension plans?