(library) Fix a bug when uncheck a folder