Fixed a bug with adding a todo