Fixed the inventory bug. reverted the revert.