Restore toggle all

- Fix regression bug added by 5d89cac;
Improve dependency handling performance on check()