Fixed bug in putItems