Fixed inventory bug.