bug fix in todo example