GPS map problem

Hello, i'm struggling since days with this problem. I am making a gps map (fs9gps) and i set my own custom draw elevation colors. Everything works fine, but if i set the <TerrainShadow> to 1, colors are messed up.
See image below. Any ideas?! The gauge is working ok and everything else is ok.

Any ideas?!
No simple cure, or parameter selection for this that I'm aware of. You can edit your color palette to derive a set that works with TerrainShadow=1, or use one of the palettes shown on page 34 of the fsmap guidebook. This particular issue is described on pg 36.