Curious, I can't make that happen. Is it by transferring via right-click alone or am I missing something to replicate this?
I think it involves the anvil somehow.
Just pass the items in quantity and the bug occurs
here is an image explaining the conditions of the bug