td-item: fix editing existing item