Fix bug where inventory would not create items array