Mortgage interest deduction

I sold my primary residence home in Aug. 2021 and had interest of 29,000 on a 640,000 mortgage, and the existing mortgage was paid off.  In Dec. 2021 I purchased a new home for my primary residence and had Mtge. interest of 514 on a mortgage of 480,000,   When I add the new lender mortgage expense of 514, it triggers a limitation since the software appears to be adding the two mortgage balances together.  Is this a bug in the turbo tax software?