Fixed bug in todo list