Fold less / Fold more dont work after deleting

Steps to reproduce

In sandbox, make new document like this

## Header here
text 
text
## Another header
text

fold first header so you see:

> ## Header here
## Another header
text

Delete second header and its text, now you see

> ## Header here

This remaining header cant be unfolded with “Fold Less” command

Did you follow the troubleshooting guide? [Y/N]

Y

Environment

v1.6.3
MacOS Sonoma

thanks