small fix to item iteration