Fixed keepinventory