Crafting bug with duplication of materials

Hello, I’m here because today I found this bug that makes it possible that the materials can be duplicated through this process that I leave to you with this clip recorded below.

[Twitch]

The problem is the duplication of materials when I go to remove any workbench in the house.
In the moment in which I remove the workbench and the materials consumed in order to receive their evolution I am given back in inventory, although they are in reality used and therefore they would not have to return me.