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.
“Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life.” Terry Pratchett