bugs in inventory state removed