how to fix weird notation

I sometimes get some crazy notation, I don’t really understand how I did it, but the question is, how do I fix it?

XML import? Select all, Reset Beaming.

Wow, solved in 1 click !!
Yes an old arrangement from Finale imported as XML …