Fix error in creating to-do items