Two bugs in the inventary fixed