fix bug in TodoForm