TT2022 allows Social Security Part A premiums to be fully deductible on Schedule C even when there is a net loss (and should not)

I entered my Medicare premiums as deductible health insurance expenses on Schedule C and even though the business had a small net loss TT allowed the premiums to be fully deductible which created a larger loss. In theory health insurance premiums should be deductible only to the extent that the business has a net profit. So this seems to be a TT bug.