Weird beaming

When I select the notes in a bar, and click “Reset Beaming”, I get the results as show below.





If I select as much as one note in the preceding bar, Reset Beaming gives me different results.


Screenshot 2.png
Screenshot 1.png

Ah: I had “Allow rests within beams, break secondary beams on”. Changing that to “Break beams at rests” fixed it.

Is that a bug?