Fix issue with inventories resizing