Fixed item amount

The current $i value should be evaluated before the $itemInfo[1] value
as $itenInfo[1] will only be set if $i < 59.