> On my emacs 27, following demonstrates the problem. The patch is attached. It should fix the problem.