Beaming problems

What happens here and how can I change this? This is a blank template (no import) and reset beaming also doesn’t work.

I suspect the extra sixteenth note at the end of the top part suggests to Dorico a different pattern of syncopation. You may have to change this with forced duration.

That doesn’t work. But changing the while syncopation works.