fix collapse folding