Vladimir,

If I understand you correctly, the file I uploaded behaves correctly for you (but not for me). You're probably right, there must be a setting in my version of Word (Office Pro 2019) that is causing this.