Fix a nil error in inventory/vault handling
setWrap fix. It's experimental since computing the value that would make sense doesn't work correctly