How does the sentence end?

The allergy caused James to need a high dose of medication because the
medication was curing it.