Fixes bugs with editing existing list items