Fixed add new todo

Bug : When you delete a todo2 and then add a new todo, it'll update todo3 instead of adding a new todo i.e todo4. 

This one will create a todo_id without any loop(my last fix was with loop).