fix crash in GRASS plugin
fix crash in Compass plugin