fix bug in todos filter