Fix rebuilding folder tree
Fix initial status of folder tree