fixed empty selection bug. enable folding top-level blocks inside a file.