Fixed inventory check