Fixed a few inventory bugs