fix collapsing of folders