fixed bug in *S* and global todo list