Fixed #1870
Merge pull request #1872 from jsbin/fix/1870-folding-not-working

Fixed #1870 folding not working