Hi @y30fi,
I just tested both scenarios here on my Macbook Pro M2 on Sonoma 14.4.1 and I can't reproduce.
I suppose it's either an issue with your project file, or a case of corrupted Logic preferences.
For the latter you can quit Logic, locate the com.apple.logic10.plist preferences file in your user's Library folder (which by default is hidden in macOS), and either zip it then delete the unzipped original (as to keep a backup, just in case), or simply delete directly it if you don't care.
J.