Fix layout bugs when items.count%2==1