fix bug with pickUp items from inventory