Fix existing item recognition in "Code" widget.