Unicode number change after export

I needed to add a new glyph to an existing font. I substituted the new glyph for an existing one. After exporting the font however the numbers are wrong.
The unicodes that within the program are associated with normal numbers, after exporting turn out to be associated with exponents.
This problem is visible on Figma and on code, but not on Illustrator. Also if I export to .wof the problem disappears.

You might have a font cache issue: Eliminating font cache problems | Glyphs