Refinanced mortgage interest deduction on primary and second home not correct

Using EasyStep entry, I entered 1098 data for both mortgages which were refinanced in 2021 and total much less than $750,000.  The total interest shown on the Schedule A form is an amount of approximately half the total combined interest, but not equal to either of the individual interest amounts. 

 

Upon looking a the forms for Home Int Wkst for each mortgage, the Smart Worksheet section entry B is NO, but it actually is a refinance of a previous loan, so it should be YES.  When I change this to YES for each refinanced mortgage, then both mortgage interests are correctly totaled as a deduction on Schedule A.

 

Is this a bug or am I doing something wrong?