Gem Duplication Bug / Exploit

Hey, so I believe I accidentally found a way to duplicate gemstones?
If you have a loadout in the Armory with a crafted primal weapon that has a gemstone socketed into it and then swap to a diffrent loadout that has a weapon without a socket, you recieve the gem in the inventory, right? Well, if you socket the gem back into the crafted primal without swapping loadouts and THEN swap back to the primal loadout, you get the weapon with gem in it + one extra duplicate of that gem. Please fix ^^ I dunno if it works with armor pieces or just… regular items, but I really don’t wanna test it. ^^

You sure it doesn’t just put the gem in your inventory, instead of the stash? Are you sure that the total quantity of gems in your stash and inventory increases?