Compass about 180 degrees wrong when doing activity/navigation

Hi everybody,

My problem with the compass is that the compass could (not always) show the right direction when in the compass app.

But if I start an activity and enable navigation eg. a course, then the compass will show about 180 degrees wrong.

Have anybody else experienced this weird problem?