Created by: dbernar1
Hello, I made a very simple fix to the problem with nesting collapses.
I expect there are unintended consequences, because I expect you would have made this change yourself otherwise.
But, just in case, here's the pull request in case you might find it useful.