fixed small bugs with inventory