ATR42 Flight Director unexpected turns off course

Hello! For some reason the flight director is making turns, even if the airplane is in the right path and should continue on course

As you can see, the airplane is in the right path, nevertheless the flight director is making a left turn, and I don’t understand why.

Just asking before reporting a bug.

Thanks in advance!
Seb