Fixed invalid sizes for zero items.