Beams to the wrong direction slurred notes?

Can you attach the project itself, ideally a cut-down version that minimally reproduces the problem? It’s not practical to diagnose these kinds of situations from a picture.