# of course. you are looping 36 times for every item in the inventory, but you are setting the slot to the loop-item which will always return the last looped item. Since you never changed the item, it's always that one item