fix the creation of an item, add debug code to the option