BUG: fix reference to the list being edited.