fixed removing last todo in list of todos