bug fix for MEH_DistRAS. seems to work now.