small inventory bug fixes