editing last item in list makes it disappear