fixed bug in todo