Ihor Radchenko writes: > Applied onto main. I wrote a regression test, so that we do not need to fix this problem again next time. Please see the attached patch.