How to handle a 'return of capital' adjustment on ESPP stock

I sold ESPP stock in 2019 that had a 'return of capital' adjustment several years ago. The 1099-B has the cost basis adjusted for the 'return of capital' and I understand that, but when TurboTax calculates the employee compensation portion from the sale it uses the unadjusted cost basis for the calculation and the adjusted cost basis is used to calculate the capital gains. this make the net capital gain different on the schedule D than it is on the Employer Stock Transaction Worksheet. Is this OK?