Fixed an inventory bug with bags