Inventory Key Duplication with Stack Split

I made 5 x lockpicks and the were batched together. When using it, it took damage but the entire stack all stayed in the same stack still. It took another damage hit and then the stack split, but the inventory key allocation was duplicated.