fix bugs in list editing