Curse effect on spell cost not removed

Hi, I fought against a Poison Eye and it casted Curse on my mage, I saw spells such as Magic Missile become more expensive. But evev after removing it, the penalty remained. If it matters, after defeating it, I also leveled up. Doing screenshots, my Attack Magic was increased when the penalty was in effect, which is also odd. Is this a bug?