Edge 25 - Follow course Map rotating

When following a course, usually when off course or stopped on my bike, the map course starts rotating, the compass cannot lock on the correct direction. This is very confusing when you are trying to guide yourself on MTB trails. Has anyone had similar issues? I've even sent the edge 25 back to garmin for the guarantee, but I'm still getting the same problem.