Inventory bug with Scroll and Rusty Sword

I just mixed a scroll and my Rusty sword together, didn’t work, so when I unequipped my sword and put it in my inventory to try to enchant it that way, it just disapeared.

EDIT: I just teleported to a different location, got my sword back, not the scroll though.

Did Your Sword Have “6 Attempts Left”? If So Obviously The Scroll Failed.