We have an X5 on the old girl.
Polarity thing is a good possibility. If that does not work check the positioning of your fluxgate. I had the same problem with the whole learning thing and it turned out to be the fluxgate position.
“Life is a trick, and you get one chance to learn it.”
― Terry Pratchett, Nation