Garmin 540 shows me the wrong current climb gradient

I replaced my edge 530 with a new edge 540. The old one was showing accurate data, but the new 540 is mixing up the descent and ascent. Is this a problem with all 540s?
Garmin? Can you fix this problem so it works properly?