Fixed inventory bug