fixed add to inventory bug