Fix conditional clear on todos.