Fix handling of long item names in list lost by commit 939d72d