Fixes in setItems method