fix for adding items to players inventory