This should fix all InventoryCloseEvent errors