Discordant notes added to one riff (maybe others)

Hi there

I was testing those wonderful new riffs :smiley:, when I noticed an issue

here is the Scaler-State_2021-02-17_011612.xml (9.4 KB)

and here you see the only 3 chords (red lines)

that produce the right riff, supposed that the correct riff is the one of the first chord

All the other chords produce many discordant notes, why?