Capital losses from sale of property owned by partnership

In 2020 we sold a building at a loss.  We didn't get a credit for the capital losses because they were passive and we needed passive capital gains to offset them.  In 2021 they got carried forward.  Now I'm starting 2022 taxes and we still have no passive capital gains, so I was assuming they would carry forward to 2023.  But TT is using some of those losses against ordinary passive income.  I'm assuming some box on the K1 is checked wrong somewhere.  Where should I look?

Thanks