Fixed an error while adding to-dos