Either the diagnosis is wrong or the treatment is wrong.
Many over-the-counter anti-fungal creams are not effective for ringworm
, despite their advertisements. And if it isn't ringworm in the first place, you'll need an entirely different treatment. So see a dermatologist to get a precise diagnosis and treatment.