Better checks for duplicate item name.  Thanks to PC999 for reporting it...