Fix for mgd.
Merge pull request #102 from dblodgett-usgs/master

Fix for mgd.