When I press the "i" button to open my inventory bag, and then I press the "3" button to insert a sword into my inventory bag, which also places the sword in the active weapon slot (since I did not insert any other weapons in the inventory bag beforehand), I get a pop-up box with this error:

Script crash in slot_was_clicked

I press the OK button, and the picture of the sword shows up in the active weapon slot of the inventory bag, but when I press the "i" key again to close the inventory bag, a sword is not being equipped in my player's hand.