Fixing the logic for the capacity used feature since it can no longer depend on the inventory name. It's more robust now anyways :).